home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- // Copyright (C) 1997-1998 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: Thu Aug 7 21:44:35 MDT 1997
- // Author: marianne
- //
- // Description:
- // helps to create the controls for polyCreateFacet,
- // polyAppend and polySplit tools property sheet.
- //
- // Input Arguments:
- // None.
- //
- // Return Value:
- // None.
- //
-
- global proc polyEditFacetProperties (string $type, string $ctxCmd)
- {
- string $parent = `toolPropertyWindow -q -location`;
-
- setUITemplate -pushTemplate OptionsTemplate;
- setParent $parent;
-
- string $title;
- if ($type == "polyAppend") {
- $title = "Append to Polygon Settings";
- } else if ($type == "polySplit") {
- $title = "Split Polygon Settings";
- } else if ($type == "polyCreateFacet") {
- $title = "Create Polygon Settings";
- }
-
- columnLayout -adj true $type;
- frameLayout -collapsable true -collapse false -l $title
- propFrame;
- columnLayout propLayout;
- // Subdivisions
- intSliderGrp -field true -l "Subdivisions" -min 1 -max 100 -v 1
- subdSld;
-
- // Maximum number of points
- if ($type != "polySplit")
- {
- intSliderGrp -field true
- -l "Limit Points to"
- -min -1 -max 100 -v -1
- maxPointsSlider;
- }
-
- if ($type == "polyAppend") {
- // Angle
- floatSliderGrp -field true -l "Rotation Angle"
- -min 0.0 -max 360.0 -v 0.0 angSld;
- }
-
- if ($type != "polySplit") {
- optionMenuGrp -label "Texture" textureBox;
- menuItem -label "None";
- menuItem -label "Normalize";
- menuItem -label "Unitize";
- setParent -menu ..;
- }
-
- // Constraints
- //
- if ($type == "polySplit") {
- checkBoxGrp -label "" -label1 "Snap To Edge" snapEdgeBox;
-
- // Magnet Snapping
- checkBoxGrp -label "" -label1 "Snap To Magnets" snapMagnetBox;
- intSliderGrp -field true -l "Number Of Magnets"
- -min 0 -max 10 magnetSld;
- floatSliderGrp -field true -l "Magnet Tolerance"
- -min 0. -max 100 snapSld;
- } else {
- // Planar constraint
- checkBoxGrp -label "" -label1 "Ensure Planarity" planarBox;
- }
-
- // Operation
- //
- if ($type != "polySplit") {
- radioButtonGrp -l "Operation" -numberOfRadioButtons 2
- -label1 "Create"
- -label2 "Append"
- newFacetRadio;
- }
-
- setParent ..; // columnLayout propLayout
- setParent ..; // frameLayout propFrame
- setParent ..; // columnLayout
-
- setUITemplate -popTemplate;
- }
-